#ifndef _MOBILE_COUNTRY_SDK_API_H
#define _MOBILE_COUNTRY_SDK_API_H


#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h> 
#include <unistd.h> 
#include <fcntl.h>
#include <time.h>
#include <sys/types.h>          
#include <sys/socket.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include "cc_api/cc_datatypes.h"

#define  SDK_CONFIG_FILE_PATH "/config"
#define  SDK_CA_FILE "/res/ca/ca-bundle-add.crt"

enum API_INIT
{
	NOT_INIT = 0, //未初始化
	INIT_OK = 1,
};

int MobileCountrySdkInit();
int MobileCountrySdkStop();
int MobileCountrySdkStart();
int MobileCountrySdkStatus();
int RegisterDevice(int mode);
void OnMediaData(int pagetype, int sync, unsigned char* data, unsigned int size, unsigned int timestamp, unsigned long long utcms);
void SetImageSize(int nWidth, int nHeight);
void SendEvent(cc_uint64 nTimeStamp, cc_detect_type_e nEventType, cc_detect_identify nAction, cc_event_attribute* pEventAttribute);
void ApiFactoryReset(void);
uint64_t util_current_utc_time_ms(void);
int MobileCountrySdk_is_Init(void);
int64_t getNowMs(void);
cc_uint64 MobileCountry_Get_utcms(void);


int GetConfigWifiQrcodeStatus();
int SetConfigWifiQrcodeStatus(int value);
#endif